#include"SList.h"

int main()
{
	
	/*SLTPrint(list);
	SLTPopBack(&list);
	SLTPrint(list);
	SLTPopBack(&list);*/
	/*SLTPushFront(&list, 2);
	SLTPushFront(&list, 3);
	SLTPushFront(&list, 4);
	SLTPushFront(&list, 5);
	SLTPushBack(&list, 6);
	SLTPushBack(&list, 7);
	SLTPushBack(&list, 8);
	SLTPushBack(&list, 9);
	SLTPushBack(&list, 10);*/
	/*SLTPrint(list);
	SLTNode* pos = SLTFind(list, 11);
	printf("pos = %p\n", pos);
	SLTInsert(&list, pos, 100);
	SLTPrint(list);*/
	SLTNode* list = NULL;
	SLTPushBack(&list, 1);
	SLTPushBack(&list, 2);
	SLTPrint(list);
	SLTNode* pos = SLTFind(list,1);
	SLTInsertAfter(pos,1000);
	pos = SLTFind(list,1000);
	SLTPrint(list);
	SLTEraseAfter(pos);
	SLTPrint(list);
}